<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Customer List</title>
</head>
<body>
<h1>Customer List</h1>
	<table>
			<tr>
				<th>id</th>
				<th>姓名</th>
				<th>性别</th>
				<th>生日</th>
				<th>工资</th>
				<th>爱好</th>
				<th>删除用户</th>
				<th>更新用户</th>
			</tr>
		<c:forEach items="${customers }" var="c">
			<tr>
				<td>${c.id }</td>
				<td>${c.cname }</td>
				<c:if test="${c.sex }"><td>男</td></c:if>
				<c:if test="${!c.sex }"><td>女</td></c:if>
				<td>${c.birth }</td>
				<td>${c.sal }</td>
				<td><a href="showFavs?id=${c.id }">查看爱好</a></td>
				<td><a href="del?id=${c.id }">删除</a></td>
				<td><a href="update?id=${c.id }">更新</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>